import http from '@/utils/request'


const basePath = process.env.VUE_APP_BASE_TT_IM


//获取好友列表
export function friendList() {
    return http({
        url: `${basePath}/im-consumer/friendList`,
        method: "get"
    })
}



//发送信息
export function sendMsg(data) {
    return http({
        url: `${basePath}/im-chat-msg/sendMsg`,
        method: "post",
        data:data
    })
}

//获取消息列表
export function chatMsgList(data) {
    return http({
        url: `${basePath}/im-chat-msg/chatMsgList?receiverPerson=${data}`,
        method: "get"
    })
}


//发送群组信息
export function sendGroupMsg(data) {
    return http({
        url: `${basePath}/im-chat-msg/sendGroupMsg`,
        method: "post",
        data:data
    })
}